package br.edu.fanor.esfinge.dao.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.edu.fanor.esfinge.dao.VerResumoDAO;
import br.edu.fanor.esfinge.entity.VerResumo;

@Stateless(mappedName="ejb/VerResumoDAO")
public class VerResumoDAOImpl implements VerResumoDAO{

	@PersistenceContext
	private EntityManager em;

	@Override
	public VerResumo inserir(VerResumo verResumo) {
		em.persist(verResumo);
		return verResumo;
	}

	@Override
	public VerResumo buscarPorId(Long id) {
		em.find(VerResumo.class, id);
		return null;
	}

	@Override
	public void remover(VerResumo verResumo) {
		em.remove(verResumo);
		
	}

}
